#ifndef ADDRESSBOOKSERVICE_H
#define ADDRESSBOOKSERVICE_H

#include <QString>
#include "dal/dao/AddressBookDataAccess.h"
#include "entity/Address.h"

// 地址簿、个人信息业务类
class AddressBookService
{
public:
    QList<Address> getAddressBook(const QString &userID);
    bool updateAddress(const int &addressId, const QString &label, const QString &name, const QString &phone, const QString &address);
    bool removeAddress(int addressId);
    bool addUserAddress(int userId, const QString &label, const QString &name, const QString &phone, const QString &address);
};

#endif // ADDRESSBOOKSERVICE_H
